package com.diankangwo.dao;

import java.util.List;

import com.diankangwo.dao.impl.BaseDaoImpl;
import com.diankangwo.domain.RefundMoney;

/**
 * 退费接口类
 * 
 * @author xiaoyu
 *
 */
public interface RefundMoneyDAO extends BaseDAO<RefundMoney> {

	/**
	 * 查询所有退费记录
	 * 
	 * @return 退费记录集合
	 */
	public List<RefundMoney> findAll();
	
	/**
	 * 按条件查询退费记录
	 * 
	 * @return 退费记录对象
	 */
	public RefundMoney findById(int id);

	/**
	 * 按条件查询退费记录
	 * 
	 * @param re
	 * @return 一天记录
	 */
	public List<RefundMoney> findByCondition(RefundMoney re);

	/**
	 * 添加、更新退费记录
	 * 
	 * @param re
	 * @return 是否成功
	 */
	public boolean insertOrUpdateRefunMoney(RefundMoney re);

	/**
	 * 删除退费记录
	 * 
	 * @param re
	 * @return 是否成功
	 */
	public boolean deleteRefunMoney(RefundMoney re);

	/**
	 * 按ID删除退费记录
	 *
	 * @param re
	 * @return 是否成功
	 */
	public boolean deleteRefunMoneyById(int id);

	/**
	 * 按ID删除退费记录
	 *
	 * @return 是否成功
	 */
	public RefundMoney findByOrderNo(String orderNo);

}
